package jhlee42;

public class J30ExGugudan {

	public static void main(String[] args) {
				
		System.out.println("\t\t\t"+"Multiplication Table");		
		
		for(int j = 1;j <= 9; ++j){
			if (j == 1){
				for(int k = 1;k <= 9; ++k){
					System.out.print("\t"+k);
				}
				System.out.print("\n"); // 줄바꿈		
				System.out.println("---------------------------------------------------------------------------");				
				//System.out.print("\n"); // 줄바꿈
			}	
			System.out.print( j +"  |"+"\t");
			for(int i = 1;i <=9; ++i){		
					//System.out.print( i +"\t");			
					System.out.print( i*j +"\t");			
				}		
		System.out.print("\n"); // 줄바꿈		
		}				
	}	
}


